<?php echo "<markers>" ?>
<?php foreach($observationList as $observation):?>
    <?php echo "<marker "?>
    <?php $tag = "lat" ?>
    <?php echo ($tag. '="'.$observation->getLat().'" ') ?>
    <?php $tag = "lng" ?>
    <?php echo ($tag. '="'.$observation->getLng().'" ') ?>
    <?php $tag = "Location" ?>
    <?php echo ($tag. '="'.$observation->getLocation().'" ') ?>
    <?php echo (' />') ?>
<?php endforeach ?>
<?php echo "</markers>" ?>